package lianxi;

public class Dog extends Animals{
    public Dog() {
    }

    public Dog(int age, String color) {
        super(age, color);
    }

    public void eat(String something){
        System.out.println(getAge()+"岁的"+getColor()+"颜色狗的在吃"+something);
    }
    public void lookHome(){
        System.out.println("狗在看家");
    }
}
